package com.taotao.sys.model.vo.sl;

import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
public class ShortLinkPageVO implements Serializable {

	@ApiModelProperty(value="主键")
	private Long id;

	@ApiModelProperty(value="原始链接")
	private String srcLink;

	@ApiModelProperty(value="短链接编码")
	private String shortLinkCode;
	@ApiModelProperty(value="短链接")
	private String shortLink;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value="创建时间")
	private LocalDateTime createTime;


	@Override
	public String toString() {
	return JSON.toJSONString(this);
	}

}